package LeedCode.HuiWenNum;

public class HuiWenNumbers {
    public  static boolean isPalidrome(int x){
        String str=String.valueOf(x);
       for (int i=0,j=str.length()-1;i<j;i++,j--){
           if (str.charAt(i)!=str.charAt(j)){
               return false;
           }
       }
        return true;
    }
    public static void main(String[] args){

        System.out.println(isPalidrome(12321));
    }
}
